options Property |
Array that retrieves the collection of DIV objects in a combo box.
Syntax
Scripting |
oOptions = selectID.options |
Parameters
Parameter |
Description |
---|---|
oOptions |
Array that contains the collection of DIV objects defined in a combo box. |
Example
Following is a sample code that demonstrates the usage of the above property:
<!-- Definition of the combo box --> <eibus:select id="mySelect" style="width:150px;height:20px"> <div>Item 1</div> <div>Item 2</div> <div>Item 3</div> <div>Item 4</div> </eibus:select> //Function in JScript to retrieve the options function getOptions() { var options = mySelect.options; //Display the content for (var i = 0; i < options.length; i++) { application.notify(options[i].outerHTML + " : " + options[i].selected) } }